import {request} from "../request";

//新建车辆申请
export function createVehiclePy({brand, cause, empId, jieshuTime, licensePlate, kaishiTime, vehicleId, admSpecialist,empName,}){
    return request({
        url: '/process/vehicle/create',
        method: 'post',
        data:{brand, cause, empId, jieshuTime, licensePlate, kaishiTime, vehicleId,admSpecialist,empName}
    })
}

//2、获取车辆申请审批人员
export function getAssessingOfficer(){
    return request({
        url: '/process/vehicle/assessing-officer',
        method: 'get'
    })
}
//查询所有申请的信息
export function carAll(){
    return request({
        url:'/process/vehicle-py/vehicle-list',
        method:'get',
        params:{}
    })
}
//查待审批信息
export function daishengpi({empId}){
    return request({
        url:"/process/vehicle/my-task",
        method:'get',
        params:{empId}
    })
}
//审批完成
export function wancheng({approved,processInstanceId,taskId,licensePlate,reply}){
    return request({
        url:'/process/vehicle/do-audit',
        method:'put',
        params:{
            approved,processInstanceId,taskId,licensePlate,reply
        }
    })
}
